﻿@using EasyUIMvc
@model List<MenuItem>
@{
    ViewBag.Title = "MenuButton";
}

<h2>MenuButton</h2>
@*<a href="javascript:void(0)" id="mb" class="easyui-menubutton"   
        data-options="menu:'#mm',iconCls:'icon-edit'">Edit</a>  
<div id="mm" style="width:150px;">  
    <div data-options="iconCls:'icon-undo'">Undo</div>  
    <div data-options="iconCls:'icon-redo'">Redo</div>  
    <div class="menu-sep"></div>  
    <div>Cut</div>  
    <div>Copy</div>  
    <div>Paste</div>  
    <div class="menu-sep"></div>
    <div data-options="iconCls:'icon-remove'">Delete</div>  
    <div>Select All</div>  
</div>  *@
@Html.EasyUI().Menu(settings =>
{
    settings.Id = "menu";
}).Bind(Model).GetHtml()
@Html.EasyUI().MenuButton(settings => { settings.Text = "Test"; settings.DataOptions = "menu:'#menu'"; }).GetHtml()